]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Update API call
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 3 May 2016 11:22:53 +0000 (13:22 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 4 Nov 2016 15:35:11 +0000 (16:35 +0100)
This function has now a more generic name, so it caters for both
swipe and pinch touchpad gestures.

https://bugzilla.gnome.org/show_bug.cgi?id=765937

js/ui/windowManager.js

index 3fb59ec901e668bdc2e4cf120091e8474092d1ad..fc34aab607064974cf900780f9c4142ab95cf7e8 100644 (file)
@@ -511,7 +511,7 @@ const TouchpadWorkspaceSwitchAction = new Lang.Class({
         if (event.type() != Clutter.EventType.TOUCHPAD_SWIPE)
             return Clutter.EVENT_PROPAGATE;
 
-        if (event.get_gesture_swipe_finger_count() != 4)
+        if (event.get_touchpad_gesture_finger_count() != 4)
             return Clutter.EVENT_PROPAGATE;
 
         if (event.get_gesture_phase() == Clutter.TouchpadGesturePhase.UPDATE) {